package com.example.modal;

import android.content.Context;

import com.example.dao.DBDao;

import java.util.List;

public class DataBaseUtil {
    public static QcCard findCardInfo(String cardid, Context context) {
        QcCard card = null;

        DBDao dbDao = new DBDao(context);

        card = dbDao.findCardById(cardid);
        return card;
    }

    public static List<WorkingProcedure> findWorkProcedure(String keycardCode, Context context) {
        // TODO Auto-generated method stub
        DBDao dbDao = new DBDao(context);
        List<WorkingProcedure> workProducer = dbDao.findAllWorkProcedure(keycardCode);
        return workProducer;
    }
    //public static List<MostPortItem>findMostPortItems(String keycardString,Context context)
}
